#include "Gauss1D2P.h"
#include <cmath>

using SG::DataStructure::Common::Real;
using namespace SG::FEMSolver::Element;

std::size_t SG::FEMSolver::Element::Gauss1D2P::nPoint = 2;

Gauss1D2P::Gauss1D2P ()
:integPointSet (nPoint)
{
    const Real xi{0.577350269189626};
    integPointSet[0].m_x      = -xi;
    integPointSet[0].m_y      = 0.0;
    integPointSet[0].m_z      = 0.0;
    integPointSet[0].m_weight = 1.0;

    integPointSet[1].m_x      = xi;
    integPointSet[1].m_y      = 0.0;
    integPointSet[1].m_z      = 0.0;
    integPointSet[1].m_weight = 1.0;

}

